home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-05-01 | 3.1 KB | 112 lines | [TEXT/MPS ] |
- /*
- File: HIDialogs.idl
-
- Contains: IDL interface for the HIDialogs class
-
- Version: Technology: System 8.0
- Release: Universal Interfaces 3.0d3 on Copland DR1
-
- Copyright: © 1995-1996 by Apple Computer, Inc. All rights reserved.
-
- Bugs?: If you find a problem with this file, send the file and version
- information (from above) and the problem description to:
-
- Internet: apple.bugs@applelink.apple.com
- AppleLink: APPLE.BUGS
- */
-
-
- #ifndef __HIDIALOGS_IDL__
- #define __HIDIALOGS_IDL__
-
- #include <HIEmbeddingPanels.idl>
- #include <HIDialogTypes.idl>
-
- interface HIPushButton;
-
- interface HIDialog : HIRootPanel
- {
- // procedural initializer
- OSStatus InitDialog (in RefLabel identifier, in HIWindow window);
-
- // default and cancel subPanels - escape and cmd-. map
- // to the cancel subPanel; enter maps to the cancel subPanel
- OSStatus SetDefaultPushButton (in HIPushButton defaultSubPanel, in boolean isDismissing);
- HIPushButton GetDefaultPushButton ();
- OSStatus SetCancelPushButton (in HIPushButton cancelSubPanel, in boolean isDismissing);
- HIPushButton GetCancelPushButton ();
-
- // by setting a subPanel as a dismissing subPanel, that
- // panel's selection will cause the dialog to be disposed.
- // a dialog can have many dismissing subPanels.
- OSStatus SetDismissingSubPanel (in HIPushButton subPanel, in boolean isDismissing);
- boolean IsDismissingSubPanel (in HIPushButton subPanel);
-
- // get the next subPanel in focus order. Return
- // NULL if there is no next focussed subPanel (no wrapping!)
- HIPanel GetNextUserInputFocussedSubPanel (in boolean goingBackwards);
-
- // virtual method for dialog dismissal - when user selects
- // a dismissing item or closes the window. Return true
- // if dismissal actually happened (could be rejected due to
- // bad input)
- boolean Dismiss ();
-
- implementation {
-
- passthru C_h = "#include <Types.h>"
- "#include <HIDialogTypes.h>";
-
- passthru C_xh = "#include <Types.h>"
- "#include <HIDialogTypes.h>";
-
- releaseorder: InitDialog,
- GetDefaultPushButton,
- SetDefaultPushButton,
- GetCancelPushButton,
- SetCancelPushButton,
- SetDismissingSubPanel,
- IsDismissingSubPanel,
- GetNextUserInputFocussedSubPanel,
- Dismiss;
- };
- };
-
- interface HIModalDialog : HIDialog
- {
- // programmatic initializer
- OSStatus InitModalDialog (in RefLabel identifier, in Rect screenBounds,
- in boolean moveable);
-
- // return the dialog's modal handler table. This table is created
- // in the dialog's initializer, but can be modified by the client
- // before it is pushed inside execute.
- AEHandlerTableRef GetModalAEHandlerTable ();
-
- // Push the handler table, call AEReceive, and wait until
- // the dialog is dismissed. Then, pop the table and return
- void ExecuteModality();
-
- implementation {
-
- releaseorder: InitModalDialog,
- ExecuteModality,
- GetModalAEHandlerTable;
- };
- };
-
-
- interface HIAlert : HIModalDialog
- {
- // programmatic initializers
- OSStatus InitAlert (in RefLabel identifier, in Rect screenBounds, in HIAlertType alertType);
-
- implementation {
-
- releaseorder: InitAlert;
- };
- };
-
-
- #endif
-